package Demo1;

public class Text1 extends Base {
    public static void main( String[] args ) {
        new Text1();//1
        //调用父类无参的构造方法
        new Base();//2
    }
}
class Base {
    Base() {
        System.out.print("Base");
    }
}